package org.shangrila.bme.eo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.math.BigDecimal;


/**
 * The persistent class for the bme_rpt_info database table.
 * 
 */
@Entity
@Table(name="bme_rpt_info")
@NamedQuery(name="BmeRptInfo.findAll", query="SELECT b FROM BmeRptInfo b")
public class BmeRptInfo implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	private BigDecimal amount;

	@Column(name="ANNEX_FLAG")
	private int annexFlag;

	private String area;

	@Column(name="CONT_NAME")
	private String contName;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME")
	private Date createTime;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="END_DATE")
	private Date endDate;

	private BigDecimal mamount;

	private BigDecimal mprice;

	private BigDecimal mquantity;

	private String munit;

	private String operator;

	
	private String remarks;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="START_DATE")
	private Date startDate;

	private String status;

	//bi-directional many-to-one association to BmeContract
	@ManyToOne
	@JoinColumn(name="CONT_ID")
	private BmeContract bmeContract;

	//bi-directional many-to-one association to BmeMaterial
	@ManyToOne
	@JoinColumn(name="MID")
	private BmeMaterial bmeMaterial;

	public BmeRptInfo() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public int getAnnexFlag() {
		return this.annexFlag;
	}

	public void setAnnexFlag(int annexFlag) {
		this.annexFlag = annexFlag;
	}

	public String getArea() {
		return this.area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getContName() {
		return this.contName;
	}

	public void setContName(String contName) {
		this.contName = contName;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public BigDecimal getMamount() {
		return this.mamount;
	}

	public void setMamount(BigDecimal mamount) {
		this.mamount = mamount;
	}

	public BigDecimal getMprice() {
		return this.mprice;
	}

	public void setMprice(BigDecimal mprice) {
		this.mprice = mprice;
	}

	public BigDecimal getMquantity() {
		return this.mquantity;
	}

	public void setMquantity(BigDecimal mquantity) {
		this.mquantity = mquantity;
	}

	public String getMunit() {
		return this.munit;
	}

	public void setMunit(String munit) {
		this.munit = munit;
	}

	public String getOperator() {
		return this.operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public BmeContract getBmeContract() {
		return this.bmeContract;
	}

	public void setBmeContract(BmeContract bmeContract) {
		this.bmeContract = bmeContract;
	}

	public BmeMaterial getBmeMaterial() {
		return this.bmeMaterial;
	}

	public void setBmeMaterial(BmeMaterial bmeMaterial) {
		this.bmeMaterial = bmeMaterial;
	}

}